package com.devinlee.designpatterns.observer.consumer;

import com.devinlee.designpatterns.observer.Goods;

/**
 * 观察者模式-消息回调接口
 * <p>
 * Created by devinlee in 2022.07.04
 */
public interface MessageListent {

    /**
     * 接收消息
     * @param messageType
     * @param goods
     */
    void receive(String messageType, Goods goods);
}
